﻿@model prufa.Models.UserProfile

@{
    ViewBag.Title = "Breyta um prófílmynd";
}

<h2>Breyta um prófílmynd</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>UserProfile</legend>

        @Html.HiddenFor(model => model.UserId)

        <div class="avatar">
            <img class="avatar" src= "@Html.DisplayFor(model => model.Avatar)"/>
        </div>
        <div class="display-field">
            @Html.DisplayFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>
        <div class="editor-field">
            Slóð á prófílmynd: 
            @Html.EditorFor(model => model.Avatar)
            @Html.ValidationMessageFor(model => model.Avatar)
        </div>

        <p>
            <input id="awesomeButton" type="submit" value="Vista" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Aftur á stillingasíðu", "Manage", "Account")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
